package com.webblog.service.blog;

import com.webblog.pojo.Blog;

import java.util.List;

public interface BlogService {

    Integer addnewBlog(Blog blog);

    List getBlogList(int isDraft);

    Blog getBlogDetail(int blogId);

    Integer updateBlog(Blog blog);

    Integer setRecovery(int blogId);

    Integer recoveryBlog(int blogId);

    List getCoveryList(int isCovery);

    Integer deleteBlog(int blogId);

    Integer publishBlog(int blogId);

    List searchBlog(String title);

    List getRecentBlog();

    List getBlogByClassifyId(int classifyId);

    Integer updateReadCount(int blogId);
}
